CREATE OR REPLACE FUNCTION set_rest_id(TEXT) RETURNS TEXT AS $BLOCK$
BEGIN
	select set_value('rest_id', $1);
	return $1;
END;
$BLOCK$ language plpgsql;
